#ifndef TIMEFREQSPECTROGRAMPLOT_H
#define TIMEFREQSPECTROGRAMPLOT_H

#include <QCustomPlot.h>


/**
 * 时频图
 * @brief The TimeFreqSpectrogramPlot class
 */
class TimeFreqSpectrogramPlot
{
public:
    TimeFreqSpectrogramPlot(QString titleName,QCustomPlot*cp);
    ~TimeFreqSpectrogramPlot();
    void setData(QVector<double>T,QVector<double>F,QVector<QVector<double>>psd,bool isWavelet,double max,double min);
private:
    QCustomPlot *customPlot;
    QCPColorScale *colorScale;
    QCPColorMap *colorMap;
};

#endif // TIMEFREQSPECTROGRAMPLOT_H
